
#include <Measurement.h>

Measurement::Measurement(int amount, const Unit* unit):
    amount_m(unit->convertToBasicUnit(amount))
{
}

bool Measurement::operator == (const Measurement &measurement)
{  
    return (amount_m == measurement.amount_m);                      
}


bool Measurement::operator != (const Measurement &measurement)
{
    return !(*this == measurement);
}


